package com.matt.domain.courseV2;

import com.dotflat.util.excelUtil.Excel;
import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * 课程包
 * 例如：一年级语文，售价 199 元。
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "tc_course_package")
public class VendorCoursePackage extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "vendor_id")
    private String vendorId;

    /**
     * 课程包名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 封面
     */
    @Column(name = "cover")
    private String cover;

    /**
     * 课程包描述
     */
    @Column(name = "description")
    private String desc;

    /**
     * 促销信息
     */
    @Column(name = "promo_info")
    private String promoInfo;

    /**
     * 价格
     */
    @Column(name = "price")
    private Integer price;

    /**
     * 原价
     */
    @Column(name = "origin_price")
    private Integer originPrice;

    /**
     * 目标用户
     */
    @Column(name = "target_user")
    private String targetUser;

    /**
     * 维度
     */
    @Column(name = "dimensions")
    private String dimensions;

    /**
     * 标签
     */
    @Column(name = "tags")
    private String tags;

    /**
     * 月龄 低限
     */
    @Column(name = "age_low")
    private Integer ageLow;

    /**
     * 月龄 高限
     */
    @Column(name = "age_high")
    private Integer ageHigh;

    /**
     * 日期前有效
     */
    @Column(name = "avaliable_date")
    private Timestamp avaliableDate;

    /**
     * 状态， 0.未发布， 1.发布
     */
    @Column(name = "published")
    private Boolean published;

//    @Column(name = "album_id")
//    private String albumId;

    //内含课程数量
    @Column(name = "course_count")
    private Integer courseCount;

    //作者
    @Column(name = "author")
    private String author;

    @Column(name = "last_updated")
    private Timestamp lastUpdated;

    @Column(columnDefinition = "int default 0   COMMENT '0托班1早教' ")
    private Integer type = 0;

    @Column(columnDefinition = "varchar(32)  default '0'   COMMENT '父级ID' ")
    private String parentId = "0";

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String createdBy;

    @Column(columnDefinition = "varchar(255)  COMMENT '创建人名称'")
    private String createdName;

    @Column(columnDefinition = "varchar(255)  COMMENT '类型名称'")
    private String typeName;

    @Column(columnDefinition = "int default 0   COMMENT '显示顺序' ")
    private Integer orderNum;

}
